import request from '../../utils/request'
const gatewayPath = 'templateManage'

// 查询列表
export function selectBusiTemplateMapping(data, busiTypeId) {
  return request({
    url: `${gatewayPath}/TplBusiTemplateMapping/selectByBusiTypeId?busiTypeId=` + busiTypeId,
    method: 'POST',
    data: data
  })
}

// 新增
export function addBusiTemplateMapping(data) {
  return request({
    url: `${gatewayPath}/TplBusiTemplateMapping`,
    method: 'POST',
    data: data
  })
}
// 新增（批量）
export function addBatchBusiTemplateMapping(data) {
  return request({
    url: `${gatewayPath}/TplBusiTemplateMapping/batch`,
    method: 'POST',
    data: data
  })
}

// 删除（物理）
export function deleteBusiTemplateMapping(data) {
  return request({
    url: `${gatewayPath}/TplBusiTemplateMapping/force`,
    method: 'DELETE',
    data: data
  })
}
// 删除（物理批量）
export function deleteBatchBusiTemplateMapping(data) {
  return request({
    url: `${gatewayPath}/TplBusiTemplateMapping/force/batch`,
    method: 'DELETE',
    data: data
  })
}
